package edu.dgut.bbssystem.mapper;

import com.github.pagehelper.Page;
import edu.dgut.bbssystem.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getByUserName(String userName);

    User getByUserNameAndPassword(@Param("userName")String userName, @Param("password")String password);

    Page<User> getAll();

    int deleteByIds();
}